import request from '@/utils/request'

// 查询体美劳得分列表
export function listSports(query) {
  return request({
    url: '/gxs/sports/list',
    method: 'get',
    params: query
  })
}

// 查询体美劳得分详细
export function getSports(gxsId) {
  return request({
    url: '/gxs/sports/' + gxsId,
    method: 'get'
  })
}

// 新增体美劳得分
export function addSports(data) {
  return request({
    url: '/gxs/sports',
    method: 'post',
    data: data
  })
}

// 修改体美劳得分
export function updateSports(data) {
  return request({
    url: '/gxs/sports',
    method: 'put',
    data: data
  })
}

// 删除体美劳得分
export function delSports(gxsId) {
  return request({
    url: '/gxs/sports/' + gxsId,
    method: 'delete'
  })
}


// 查询体美劳得分列表
export function MyListSports(query) {
  return request({
    url: '/gxs/sports/MyList',
    method: 'get',
    params: query
  })
}
